package com.design.structure.bridge.atguigu;

/**
 * @ProjectName: design
 * @Package: com.design.structure.bridge.atguigu
 * @ClassName: Phone
 * @Author: shenaiguo
 * @Description: 手机
 * @Date: 2020/9/2 0002 20:08
 */
// 步骤 3
public abstract class Phone {
    //组合品牌
    private Brand brand;

    //构造器
    public Phone(Brand brand) {
        super();
        this.brand = brand;
    }


    protected void open() {
        this.brand.open();
    }

    protected void close() {
        brand.close();
    }

    protected void call() {
        brand.call();
    }
}
